package com.zcgame.customview.fresh

/**
 *@author:huangLJ
 *@date:2021/5/10 18:23
 */
interface OnPullListener {
    /**
     * 开始刷新
     */
    fun onPullBegin(refreshView: PullRefreshLayout)

    fun onPositionChange(refreshView: PullRefreshLayout, status: Byte, dy: Int, currentDistance: Int)

    /**
     * 正在刷新中
     */
    fun onRefreshing(refreshView: PullRefreshLayout)

    /**
     * 复位中
     */
    fun onReset(refreshView: PullRefreshLayout, pullRelease: Boolean)

    /**
     * 刷新完成
     */
    fun onPullRefreshFinish(pullRefreshLayout: PullRefreshLayout)
}